import torch
import numpy as np

# 系统
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
SEED = 42
torch.manual_seed(SEED)
np.random.seed(SEED)

# 环境
FREQ_MIN, FREQ_MAX = 200, 400  # MHz
BAND_MIN, BAND_MAX = 1, 3      # MHz
BAND_STEP = 0.2                # MHz
BAND_OPTS = int((BAND_MAX - BAND_MIN) / BAND_STEP) + 1  # 11 档

# 强化学习
GAMMA = 0.9
EPS_START, EPS_END, EPS_DECAY = 1.0, 0.1, 20000
LR = 1e-3
BATCH = 128
MEMORY_SIZE = 10000
EXPERT_RATIO = 0.3             # BETMR 中专家样本占比
UPDATE_TARGET = 500            # 同步目标网络步数
MAX_EPISODE = 20000